package cn.com.czpb.client.model.usercenter;

import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.util.List;

/**
 * Created by Administrator on 2017/8/14.
 */

public class LevelBean {

    /**
     * creditrule : [{"rulename":"每日登录","addscore":"2","toplimit":"2"},{"rulename":"签到","addscore":"5","toplimit":"5"},{"rulename":"评论","addscore":"10","toplimit":"100"},{"rulename":"收藏","addscore":"10","toplimit":"100"}]
     * userinfo : {"uid":"55","avatar_path":"http://101.200.174.98/yunzong_jhxt/../files/app/avatar/app_logon.png","level":"1","exp1":"17","needscore":"3"}
     */

    private UserinfoEntity userinfo;
    private List<CreditruleEntity> creditrule;

    public void setUserinfo(UserinfoEntity userinfo) {
        this.userinfo = userinfo;
    }

    public void setCreditrule(List<CreditruleEntity> creditrule) {
        this.creditrule = creditrule;
    }

    public UserinfoEntity getUserinfo() {
        return userinfo;
    }

    public List<CreditruleEntity> getCreditrule() {
        return creditrule;
    }

    public static class UserinfoEntity {
        /**
         * uid : 55
         * avatar_path : http://101.200.174.98/yunzong_jhxt/../files/app/avatar/app_logon.png
         * level : 1
         * exp1 : 17
         * needscore : 3
         */

        private String uid;
        private String avatar_path;
        private String level;
        private String exp1;
        private String needscore;

        public void setUid(String uid) {
            this.uid = uid;
        }

        public void setAvatar_path(String avatar_path) {
            this.avatar_path = avatar_path;
        }

        public void setLevel(String level) {
            this.level = level;
        }

        public void setExp1(String exp1) {
            this.exp1 = exp1;
        }

        public void setNeedscore(String needscore) {
            this.needscore = needscore;
        }

        public String getUid() {
            return uid;
        }

        public String getAvatar_path() {
            return avatar_path;
        }

        public String getLevel() {
            return level;
        }

        public String getExp1() {
            return exp1;
        }

        public String getNeedscore() {
            return needscore;
        }
    }

    public static class CreditruleEntity implements MultiItemEntity {
        /**
         * rulename : 每日登录
         * addscore : 2
         * toplimit : 2
         */

        private String rulename;
        private String addscore;
        private String toplimit;

        public void setRulename(String rulename) {
            this.rulename = rulename;
        }

        public void setAddscore(String addscore) {
            this.addscore = addscore;
        }

        public void setToplimit(String toplimit) {
            this.toplimit = toplimit;
        }

        public String getRulename() {
            return rulename;
        }

        public String getAddscore() {
            return addscore;
        }

        public String getToplimit() {
            return toplimit;
        }

        @Override
        public int getItemType() {
            return 0;
        }
    }
}
